﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using JXT.PrimaryKey.Batman.Domain.Models;

namespace JXT.PrimaryKey.Batman.Domain.UserSystem.Models
{
    [Serializable]
    public class OAuthConfig : EntityBase<int>
    {
        /// <summary>
        /// 第三方的名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 从第三方获取的key
        /// </summary>
        public string AppKey { get; set; }

        /// <summary>
        /// 第三方的secrect
        /// </summary>
        public string AppSecret { get; set; }

        /// <summary>
        ///  请求的url地址
        /// </summary>
        public string RequestTokenUrl { get; set; }

        /// <summary>
        /// 请求的url地址
        /// </summary>
        public string AuthorizeUrl { get; set; }

        /// <summary>
        /// 请求的第三个url地址
        /// </summary>
        public string AccessTokenUrl { get; set; }

        /// <summary>
        /// 为了获得相关的参数的正则表达式
        /// </summary>
        public string TokenFormatter { get; set; }
    }
}
